package com.hfut.jpoa.dao;

import com.hfut.jpoa.common.dto.ResultDto;
import com.hfut.jpoa.common.exception.DaoException;
import com.hfut.jpoa.dto.DispatchDTO;
import com.hfut.jpoa.model.Dispatch;

public interface DispatchDAO
{
	int deleteByPrimaryKey(Integer projectId) throws DaoException;

	int updateByPrimaryKey(Dispatch record) throws DaoException;

	public ResultDto<Dispatch> findInfoForPage(DispatchDTO condition)
	        throws DaoException;

	/**
	 * 保存报修信息
	 * 
	 * @param dispatch
	 * @throws DaoException
	 */
	public void insert(Dispatch dispatch) throws DaoException;

	/**
	 * 查看详情
	 * 
	 * @param condition
	 * @return
	 * @throws DaoException
	 */
	public Dispatch findInfoForPage(Dispatch condition) throws DaoException;

}